package com.itstudy.rpc;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @ClassName: RpcConsumerHandler
 * @Auther: Jerry
 * @Date: 2020/8/19 0:05
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class RpcConsumerHandler extends ChannelInboundHandlerAdapter {

    private Object response;

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        this.response = msg;
    }

    public Object response() {
        return response;
    }
}
